<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<h:head></h:head>
<body>
	<h:form>
		<center>
			<p:growl id="message" autoUpdate="true" />
			<p:panelGrid columns="2">
				<f:facet name="header">
       			 Login Form
   			 </f:facet>
				<h:outputLabel for="j_username" value="Username: *" />
				<p:inputText id="j_username" value="#{login.username}"
					required="true" requiredMessage="Need input username" />
				<h:outputLabel for="j_password" value="Password: *" />
				<p:inputText type="password" id="j_password"  value="#{login.password}"
					required="true" requiredMessage="Need input password" />
				<f:facet name="footer">
					<p:commandButton type="submit" action="#{login.doLogin}"
						value="Login" icon="ui-icon-check" style="margin:0" ajax="false" />
				</f:facet>
			</p:panelGrid>
		</center>
	</h:form>
</body>
</html>
